package dapps.entity.proj;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import dapps.entity.IdEntity;

@Entity
@Table(name = "plan")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Plan extends IdEntity {
	

	private static final long serialVersionUID = 48650899548774474L;
	
	@Column(nullable=false,unique=true)
	private Integer yeartime;
	
	@Column(nullable=false,unique=true)
	private Integer status;
	
	public Plan() {
		this.status = 0;
	}
	
	public Plan(Integer iyeartime) {
		this.yeartime = iyeartime;
		this.status = 0;
	}

	public Integer getYeartime() {
		return yeartime;
	}



	public void setYeartime(Integer yeartime) {
		this.yeartime = yeartime;
	}



	public Integer getStatus() {
		return status;
	}



	public void setStatus(Integer status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return this.yeartime.toString();
	}


}